
    <div class="container">
      <div class="row">
        <div class="col-md-8" id="banner_2">
          <div id="carousel-generic" class="carousel slide" data-ride="carousel">
            <div class="com-banner-tag">今日热点</div>
            <!-- Indicators -->
            <ol class="carousel-indicators">
              <li data-target="#carousel-generic" data-slide-to="0" class="active"></li>
            </ol>

            <!-- Wrapper for slides -->
            <div class="carousel-inner" role="listbox">
              <div class="item active">
                <img src="<?php echo $dataHot['banner_url'];?>">
                <div class="com-banner-inner-con">
                  <h3 class="com-text-overflow" >
                    <div class="com-text-con" ><?php echo $dataHot['title'];?></div>
                    <div class="com-text-dotted" >…</div>
                  </h3>
                  <h4 class="com-text-overflow" >
                    <div class="com-text-con" ><?php echo $dataHot['content'];?></div>
                    <div class="com-text-dotted" >…</div>
                  </h4>
                </div>
              </div>
            </div>

            <!-- Controls -->
            <a class="left carousel-control" href="#carousel-generic" role="button" data-slide="prev">
              <span class="glyphicon glyphicon-chevron-left"></span>
              <span class="sr-only">Previous</span>
            </a>
            <a class="right carousel-control" href="#carousel-generic" role="button" data-slide="next">
              <span class="glyphicon glyphicon-chevron-right"></span>
              <span class="sr-only">Next</span>
            </a>
          </div>
        </div>
                  <?php /* $this->renderPartial('//layouts/_login');*/?>
            <div class="col-md-4" style="padding:0;">
          <div class="com-user">
            <h3 class="text-center">校友登录</h3>
            
            <form class="com-login" role="form">
              <div class="com-login-cell form-group has-feedback col-md-8 col-md-offset-2">
                <label class="sr-only" for="user_phone">手机号码</label>
                <input type="text" class="form-control" id="user_phone" placeholder="手机号码">
                <span class="glyphicon glyphicon-user form-control-feedback"></span>
              </div>
              <div class="com-login-check form-group has-feedback col-md-5 col-md-offset-2">
                <label class="sr-only" for="user_check">验证码</label>
                <input class="form-control" type="text" id="user_check" placeholder="验证码">
                <span class="glyphicon glyphicon-random form-control-feedback"></span>
              </div>
              <button type="submit" class="com-login-get btn btn-default col-md-3">获取验证码</button>
              <button type="submit" class="com-login-btn btn-lg btn btn-default col-md-8 col-md-offset-2">登录/注册</button>
            </form>
            
            <div class="com-download">
              <img src="/images/download_bg.png">
              <a href="javascript:;" class="com-ios"></a>
              <a href="javascript:;" class="com-andriod"></a>
            </div>
          </div>
        </div>
      </div>
    </div>
    <!-- Banner and Login End -->
    <!-- Main Block Start -->
    <div class="container">
      <div class="row">
        <!-- Activity -->
        <div class="com-activity col-md-8">
          <div class="com-contain-nav">
            <div class="com-activity-logo"></div>
          </div>
            
          <?php foreach($Activity as $k=>$v): ?> 
                
                <?php if(isset($v['q_content'])):?>  
                    
                             
              <div class="com-contain">
                <a class="com-contain-in" href="<?php echo Yii::app()->createUrl("activity/view",array('ActivityId'=>$v['id'],'type_id'=>$v['type_id'])) ;?>">
                  <div class="com-text-overflow" >
                    <div class="com-text-con" ><span class="glyphicon com-glyphicon-activity"></span><?php echo $v['title']; ?></div>
                    <div class="com-text-dotted" >…</div>
                  </div>
                  <div class="com-contain-con">
                    <div class="com-contain-vote pull-left text-center">参与投票</div>
                    <div class="com-activity-count pull-right">
                      <div style="background:#FF3838;">123人参与</div>
                    </div>
                    
                      <?php foreach($v['q_content'] as $kk=>$vv):?>
                        <div class="com-text-overflow" >
                          <div class="com-text-con" ><?php echo $vv['sort'].'.'.$vv['q_content'];?></div>
                          <div class="com-text-dotted" >…</div>
                        </div>
                     <?php endforeach;?>
                  </div>
                   <div class="com-activity-progress">                      
                      <?php if($v['start_day']): ?>
                            <p class="text-center pull-left" style="background:#FF3838;"><?php echo $v['start_day'];?>天后开始</p>
                            <p class="text-center pull-left" style="background:#999;">活动开始中</p>
                      <?php else: ?>
                            <p class="text-center pull-left" style="background:#999;">报名</p>
                            <p class="text-center pull-left" style="background:#FF3838;">正在进行中</p>
                     <?php endif;  ?>                    
                   </div>
                </a>
                <hr class="com-contain-hr">
              </div>         
         
               <?php else:?>  
       
            
                <div class="com-contain">
                    <a class="com-contain-in" href="<?php echo Yii::app()->createUrl("activity/view",array('ActivityId'=>$v['id'],'type_id'=>$v['type_id'])) ;?>">
                      <div class="com-text-overflow" >
                           <div class="com-text-con" ><span class="glyphicon com-glyphicon-activity"></span><?php echo $v['title'];?></div>
                           <div class="com-text-dotted" >…</div>
                       </div>
                       <div class="com-contain-con">
                        <img src="<?php echo $v['min_banner_url']?>" class="com-contain-img pull-left">
                        <div class="com-activity-count pull-right">
                          <div style="background:#3399CC;"><?php echo $v['fav_count'];?> 收藏</div>
                          <div style="background:#FF3838;"><?php echo $v['signup_count'];?> 报名</div>
                        </div>
                        <div class="com-text-overflow" >
                          <div class="com-text-con" >时间：<?php echo $v['start_time'];?></div>
                          <div class="com-text-dotted" >…</div>
                        </div>
                        <div class="com-text-overflow" >
                          <div class="com-text-con" >类型：<?php echo $v['name'];?></div>
                          <div class="com-text-dotted" >…</div>
                        </div>
                        <div class="com-text-overflow" >
                          <div class="com-text-con" >地址：<?php echo $v['address'];?></div>
                          <div class="com-text-dotted" >…</div>
                        </div>
                      </div>
                       <div class="com-activity-progress">                      
                          <?php if($v['start_day']): ?>
                                <p class="text-center pull-left" style="background:#FF3838;"><?php echo $v['start_day'];?>天后开始</p>
                                <p class="text-center pull-left" style="background:#999;">活动开始中</p>
                          <?php else: ?>
                                <p class="text-center pull-left" style="background:#999;">报名</p>
                                <p class="text-center pull-left" style="background:#FF3838;">正在进行中</p>
                         <?php endif;  ?>                    
                        </div>
                    </a>
                    <hr class="com-contain-hr">
                </div>
          
            <?php endif;?>
                    
            
       <?php endforeach;?>  
            
                
            <?php 
               $this->widget('CLinkPager',array(   //此处Yii内置的是CLinkPager，我继承了CLinkPager并重写了相关方法
    'header'=>'',
    'firstPageLabel' => '首页',      
    'prevPageLabel' => '上一页',
    'nextPageLabel' => '下一页',
    'lastPageLabel' => '最后一页',             
    'pages' => $pages,       
    'maxButtonCount'=>10,    //分页数目
    'htmlOptions'=>array(
       'class'=>'com-pagination pagination',   //包含分页链接的div的class
     )
  )
  );
            ?>
           <div class="com-pagination-jump pull-right">
              跳转到：
              <input type="text" class="form-control" id="pagination-jump">
              <button>GO</button>
            </div> 
            
            
<!--          <ul class="com-pagination pagination">
            <li><a href="#"><span class="com-pagination-previous"></span></a></li>
            <li class="active"><a href="#">1</a></li>
            <li><a href="#">2</a></li>
            <li><a href="#">3</a></li>
            <li><span>...</span></li>
            <li><a href="#">4</a></li>
            <li><a href="#">5</a></li>
            <li><a href="#"><span class="com-pagination-next"></span></a></li>
            <div class="com-pagination-jump pull-right">
              跳转到：
              <input type="text" class="form-control" id="pagination-jump">
              <button>GO</button>
            </div>
          </ul>-->
        </div>
        <!-- Others -->
        <div class="col-md-4" style="padding:0;">
          <div class="com-contain-nav">
            <ul class="com-others-navtabs nav">
              <li class="com-others-toptenz">活动排行榜</li>
            </ul>
          </div>
          <div>
            <div class="com-others">
                
              <?php foreach($Activity as $k=>$v): ?>  
              <a href="javascript:;" class="com-others-link">
                <div class="com-text-overflow">
                  <div class="com-text-con"><span class="com-others-num">1</span><?php echo $v['title'];?></div>
                  <div class="com-text-dotted" >…</div>
               </div>
              </a>
              <hr class="com-contain-hr">
              <?php endforeach;?>

            </div>
          </div>
          <div class="com-others-banner">
            <a href=""><img src="/images/small_img.jpg"></a>
          </div>
        </div>
      </div>
    </div>
    